package com.weilai.dao;

import com.weilai.domain.Videos;
import com.weilai.domain.Views;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ViewsDao {
    //按userId查询
    @Select("select * from views where user_id=#{id}")
    List<Views> selectByUserId(int id);
}
